from django.conf.urls.defaults import *
from django.conf import settings

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
from sorl import curator as admin
import chimichanga.admin


admin.autodiscover()

urlpatterns = patterns('',
    # Example:
    # (r'^versus/', include('versus.foo.urls')),

    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
    # to INSTALLED_APPS to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    (r'^banner-cms/(.*)', admin.site.root),
)

#  while in DEV/DEBUG
if settings.DEBUG:
    urlpatterns += patterns('',
        (r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': 'static'}),
    )

#  Base Views
urlpatterns += patterns('chimichanga.banner_viewer.views',
    (r'^$', 'base'),
    (r'menu/(?P<id>[0-9]+)/$', 'concept_view'),
    (r'banner/(?P<id>[0-9]+)/$', 'banner_view'),
    (r'blank-page/$', 'blank_view'),
    (r'(?P<slug>[-a-zA-Z0-9]+)/', 'campaign_view'),
)





